﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using MyWindowsMediaPlayer.ViewModels.Center;
using MyWindowsMediaPlayer.ViewModels.Library;
using MyWindowsMediaPlayer.Libs.Mediator;
using MyWindowsMediaPlayer.ViewModels.Playlist;
using MyWindowsMediaPlayer.ViewModels.Player;
using MyWindowsMediaPlayer.ViewModels.Menu;

namespace MyWindowsMediaPlayer
{
	/// <summary>
	/// Interaction logic for MainWindow.xaml
	/// </summary>
	public partial class MainWindow : Window
	{
		public MainWindow ( )
		{
			InitializeComponent();

			Mediator mediator = new Mediator();

			this.LibraryView.DataContext = new MasterLibraryViewModel(mediator);
			this.CenterView.DataContext = new CenterViewModel(mediator, this.CenterView.MediaElement);
			this.PlaylistView.DataContext = new PlaylistViewModel(mediator);
			this.PlayerView.DataContext = new PlayerViewModel(mediator);
			this.MenuView.DataContext = new MenuViewModel(mediator);
		}
	}
}
